﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HotelManageSystem.Controllers
{
    public class HumanResourcesController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        //客户端发送ajax来获取导航Session
        public string GetSession()
        {
            if (Session["url"] == null)
            {
                //默认页的URL
                Session["url"] = "/HumanResources/Index";
                return Convert.ToString(Session["url"]);
            }
            else
            {
                return Convert.ToString(Session["url"]);
            }
        }

        public void SetSeesion(string u)
        {
            if (u != null)
            {
                Session["url"] = u;
            }
        }
    }
}
